04. Solution Code on GitHub

Reading node

For the rest of the course, you’ll make code changes to the Pets app that we provided you in the last quiz.

At any point, if you get stuck, we encourage you to keep trying different approaches to debug the problem, such as adding log messages or using the Android Studio debugger. Debugging is an essential skill that professional developers have acquired through lots of trial and error.

If you can’t get your app to work, as an absolute last resort you can refer to our version of the code. The code's home base is on GitHub at https://github.com/udacity/ud845-Pets .

Make sure you navigate to the right branch of code from the dropdown menu.

There is one branch for the state of the code at the end of each lesson.

  • lesson-one
  • lesson-two
  • lesson-three
  • lesson-four

If you click the commits link, you'll see a history log of all the individual commits (or snapshots that were captured) at certain points in time, when building up the app.

To download the code, find the gray "Download ZIP" button at the right side of the toolbar. That'll download a file called ud845-Pets.zip onto your computer. Unzip that file into a “ud845-Pets” folder.

Then import the project into Android Studio. Open up Android Studio, and close any open projects until you get to the splash screen. On the Quick Start pane, select Import project. When you see “ud845-Pets” folder, select it, and press "OK".